
<div id="loginform">
<h1 class="pagetitle"><?php echo __('Connexion')?></h1>
<form id="loginForm" class="app_form" method="post" enctype="multipart/form-data">
<button class="button_b">
	<?php $pic = $personne['photo'];
	if(!$pic){
		if($personne['sexe']=='M'){
			$pic = 'user_male.png';
		}else{
			$pic = 'user_female.png';
		}
	}
	?>
	<img alt="" height="64" src="/images/personnes/<?php echo $pic;?>"><br/>
		<?php echo $personne['prenom'] . '<br/>' . $personne['nom']?>
</button>
<div style="clear:both;"></div>
<div style="text-align:center;">
<?php echo $form['pwd']->renderLabel()?>
<br />
<?php echo $form['pwd']->render()?>
</div>
<?php if($sf_user->hasFlash('login_msg')):?>
<div class="flash_error"><?php echo $sf_user->getFlash('login_msg')?></div>
<?php endif?>
<button type="submit" class="button_c" form="loginForm" formmethod="post" formenctype="multipart/form-data" formaction="<?php echo url_for('hometouch/submitLogin?personne=' . $personne['id'])?>">
CONNEXION
</button>
</form>
<a href="/app.html">
	<button class="button_c">
		RETOUR
	</button>
</a>
</div>
<script type="text/javascript">
<!--

//-->

$(document).ready(function()
		{
			$('#pwd').focus();
		});
</script>